<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page function_base.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name">/includes/function_base.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">para host username password database</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> (c) 2009  $Id: _includes---function_base.php.html 171 2010-10-22 09:04:17Z bwanglei@gmail.com $</li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionapf_array_table" id="functionapf_array_table"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">apf_array_table</span> (line <span class="line-number">57</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据数据库表中两列的数据创建一个数组，其中一列作为数组的key，另一列作为数组的value</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_array_table
		</span>
					(<span class="var-type">$table</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type">$key_listname</span>&nbsp;<span class="var-name">$key_listname</span>, <span class="var-type">$value_listname</span>&nbsp;<span class="var-name">$value_listname</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$table</span>
				<span class="var-name">$table</span><span class="var-description">: object 数据库查询返回对象</span>			</li>
					<li>
				<span class="var-type">$key_listname</span>
				<span class="var-name">$key_listname</span><span class="var-description">: string 用来作为数组键名的列名称</span>			</li>
					<li>
				<span class="var-type">$value_listname</span>
				<span class="var-name">$value_listname</span><span class="var-description">: string 用来作为数据值的列名称</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_daohang_page_uri" id="functionapf_daohang_page_uri"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">apf_daohang_page_uri</span> (line <span class="line-number">88</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">生成上一页或者下一页的URI</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_daohang_page_uri
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$canshu_name</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$canshu_value</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$next_pre</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$get</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$canshu_name</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$canshu_value</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$next_pre</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$get</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_first_last_uri" id="functionapf_first_last_uri"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">apf_first_last_uri</span> (line <span class="line-number">156</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">生成第一页和最后一页URI</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_first_last_uri
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$echo_value</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$echo_value</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_full_url" id="functionapf_full_url"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">apf_full_url</span> (line <span class="line-number">164</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">生成当前完整URL 地址 包括URL 参数，如果要取出的参数就返回去除参数后的URL地址</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_full_url
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$add_name</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$add_value</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$del_name</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$add_name</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$add_value</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$del_name</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_get_settings" id="functionapf_get_settings"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">apf_get_settings</span> (line <span class="line-number">26</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">初始化网站参数</p>
	
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			apf_get_settings
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$mysql_conn</span>, <span class="var-type">$mysql_conn</span>&nbsp;<span class="var-name">$table_name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$mysql_conn</span>
				<span class="var-name">$table_name</span><span class="var-description">: String</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$mysql_conn</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_is_manager" id="functionapf_is_manager"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">apf_is_manager</span> (line <span class="line-number">177</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">是否是管理员</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_is_manager
		</span>
				()
			</div>

		
	
</div>
<a name="functionapf_key_in_array" id="functionapf_key_in_array"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">apf_key_in_array</span> (line <span class="line-number">75</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">判断数组中是否含有某个 key 值</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_key_in_array
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$key</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$array</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$key</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$array</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_msg" id="functionapf_msg"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">apf_msg</span> (line <span class="line-number">42</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">显示消息函数</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_msg
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$source</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$message</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$source</span>			</li>
				</ul>
		
	
</div>
<a name="functionapf_mysql_conn" id="functionapf_mysql_conn"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">apf_mysql_conn</span> (line <span class="line-number">11</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">连接数据库函数</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_mysql_conn
		</span>
				()
			</div>

		
	
</div>
<a name="functionapf_redirect" id="functionapf_redirect"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">apf_redirect</span> (line <span class="line-number">68</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">页面跳转函数</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apf_redirect
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$time</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$to</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$time</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$to</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Tue, 06 Jul 2010 19:18:45 +0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>